<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>欢迎来到histroy</title>
	</head>
	<body>
		<!-- <a href="index.html">DOM页面</a>
		<a href="index2.html">location页面</a> -->
		<button type="button" onclick="refresh()">刷新当前页面</button>
		<button type="button" onclick="b_tiao_c();">B跳转C</button>
		<button type="button" onclick="myforward();">前进</button>
		<button type="button" onclick="myback();">后退</button>
	</body>
	<script type="text/javascript">
		function b_tiao_c(){
			location.href='index2.html';
		}
		function myforward(){
			history.forward();
		}
		function myback(){
			history.back();
		}
		function refresh(){
			location.reload();
		}
	</script>
</html>
